<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>第42个CSS页面</title>
    <style>
        p {
            border-style: solid;
        }

        p.one {
            border-top: solid 15px red;
        }

        p.two {
            border-top: solid thin gold;
        }
    </style>
</head>
<body>

<h4>设置上边框宽度</h4>

<p class="one">设置上边框宽度</p>
<p class="two">设置上边框宽度</p>
</body>
</html>